/* * Copyright (c) 2016, S.F. Express Inc. All rights reserved. */ package com.sf.osms.dep.vo; import java.util.Date;

import javax.persistence.Column;

import org.apache.commons.lang3.StringUtils;

import com.sf.osms.dep.processor.util.RouterConstants;

/** * 描述： * *  * @author 841245 * @since 1.0 */
public class ChargeBaseVO {
	
	private Integer id;
	
	private String countryCode;
	
	private String sfWaybill;
	
	private String creditAccount;
	
	private String network;
	
	private String payment;
	
	private String status;
	
	private Date podDate;
	
	private String countryName;
	
	private String paymentType;
	
	/**新建日期**/
	private Date inputDate;
	
	/**修改日期**/
	private Date modifyDate;
	
	public String getPaymentType() {
		//国际化处理
		//收方付款
		if (RouterConstants.CHARGE_BASE_PAYTYPE_RECEIVER.equals(this.paymentType)) {
			return RouterConstants.CHARGE_BASE_PAYTYPE_RECEIVER_i18n;
		//第三方付款
		}else if (RouterConstants.CHARGE_BASE_PAYTYPE_3RD.equals(this.paymentType)) {
			return RouterConstants.CHARGE_BASE_PAYTYPE_3RD_i18n;
		}
		
		return this.payment;
	}

	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	public String getSfWaybill() {
		return sfWaybill;
	}

	public void setSfWaybill(String sfWaybill) {
		this.sfWaybill = sfWaybill;
	}

	public String getCreditAccount() {
		return creditAccount;
	}

	public void setCreditAccount(String creditAccount) {
		this.creditAccount = creditAccount;
	}

	public String getNetwork() {
		return network;
	}

	public void setNetwork(String network) {
		this.network = network;
	}


	public String getStatus() {
		String statusStr = this.status;
		if (RouterConstants.CHARGE_BASE_STATUS_NEW.equals(this.status)) {
			statusStr = RouterConstants.CHARGE_BASE_STATUS_NEW_i18n;
		} else if (RouterConstants.CHARGE_BASE_STATUS_DELETE.equals(this
				.status)) {
			statusStr = RouterConstants.CHARGE_BASE_STATUS_NEW_i18n;
		}

		return statusStr;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getPodDate() {
		return podDate;
	}

	public void setPodDate(Date podDate) {
		this.podDate = podDate;
	}

	public String getCountryName() {
		return countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	public String getPayment() {
		return this.payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	public Date getInputDate() {
		return inputDate;
	}

	public void setInputDate(Date inputDate) {
		this.inputDate = inputDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Override
	public String toString() {
		return "ChargeBaseVO [id=" + id + ", countryCode=" + countryCode
				+ ", sfWaybill=" + sfWaybill + ", creditAccount="
				+ creditAccount + ", network=" + network + ", payment="
				+ payment + ", status=" + status + ", podDate=" + podDate
				+ ", countryName=" + countryName + ", paymentType="
				+ paymentType + ", inputDate=" + inputDate + ", modifyDate="
				+ modifyDate + "]";
	}

	
}
